package com.misty.reflect;

public class Person {
    private String name;
    private int sex;

    public Person() {
    }

    public Person(String name, int sex) {
        this.name = name;
        this.sex = sex;
    }

    public void say(){
        System.out.println("say hello!");
    }

    private void run(){
        System.out.println("runnung...");
    }
    private String  sayHello(String word){
        System.out.println("say :"+word);
        return "say :"+word;
    }
    private static String  utils(String word){
        System.out.println("utils :"+word);
        return "utils :"+word;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                '}';
    }
}
